|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.vtp.framework.interactions.core.support.Widget
org.eclipse.vtp.framework.interactions.voice.vxml.Iota
org.eclipse.vtp.framework.interactions.voice.vxml.Item
public class Item
A single item contained in a Rule.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
Item(OneOf content)
Creates a new Item. |
|
Item(java.lang.String content)
Creates a new Item. |
|
| Method Summary | |
|---|---|
java.lang.Object |
getContent()
Returns the acceptable value(s) for this item. |
int |
getMaximumRepeat()
Returns the maximum number of times this item may be repeated. |
int |
getMinimumRepeat()
Returns the minimum number of times this item must be repeated. |
void |
setContent(OneOf content)
Sets the set of values that are acceptable for this item. |
void |
setContent(java.lang.String content)
Sets the single value that is acceptable for this item. |
void |
setMaximumRepeat(int maximumRepeat)
Sets the maximum number of times this item may be repeated. |
void |
setMinimumRepeat(int minimumRepeat)
Sets the minimum number of times this item must be repeated. |
protected void |
writeAttributes(org.xml.sax.helpers.AttributesImpl attributes)
Write the attribute members of this grammar to the supplied set. |
protected void |
writeContent(org.xml.sax.ContentHandler outputHandler)
Write the content of this item to the specified content handler. |
void |
writeWidget(org.xml.sax.ContentHandler outputHandler)
Writes the content of this widget to an XML content handler. |
| Methods inherited from class org.eclipse.vtp.framework.interactions.core.support.Widget |
|---|
toString, writeAttribute, writeChildren, writeChildren, writeWidget, writeWidget |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Item(java.lang.String content)
throws java.lang.NullPointerException
content - The single value that is acceptable for this item.
java.lang.NullPointerException - If the specified value is null.
public Item(OneOf content)
throws java.lang.NullPointerException
content - The set of values that are acceptable for this item.
java.lang.NullPointerException - If the specified set of values is
null.| Method Detail |
|---|
public java.lang.Object getContent()
public int getMinimumRepeat()
public int getMaximumRepeat()
public void setContent(java.lang.String content)
throws java.lang.NullPointerException
content - The single value that is acceptable for this item.
java.lang.NullPointerException - If the specified value is null.
public void setContent(OneOf content)
throws java.lang.NullPointerException
content - The set of values that are acceptable for this item.
java.lang.NullPointerException - If the specified set of values is
null.
public void setMinimumRepeat(int minimumRepeat)
throws java.lang.IllegalArgumentException
minimumRepeat - The minimum number of times this item must be
repeated.
java.lang.IllegalArgumentException - If the specified value is less than zero.
public void setMaximumRepeat(int maximumRepeat)
throws java.lang.IllegalArgumentException
maximumRepeat - The maximum number of times this item may be repeated.
java.lang.IllegalArgumentException - If the specified value is less than zero.
public void writeWidget(org.xml.sax.ContentHandler outputHandler)
throws java.lang.NullPointerException,
org.xml.sax.SAXException
Widget
writeWidget in class WidgetoutputHandler - The handler to write this widget to.
java.lang.NullPointerException - If the supplied content handler is
null.
org.xml.sax.SAXException - If the writing of this widget fails.protected void writeAttributes(org.xml.sax.helpers.AttributesImpl attributes)
attributes - The attribute set to write to.
java.lang.NullPointerException - If the supplied attribute set is
null.
protected void writeContent(org.xml.sax.ContentHandler outputHandler)
throws java.lang.NullPointerException,
org.xml.sax.SAXException
outputHandler - The content handler to write to.
java.lang.NullPointerException - If the supplied content handler is
null.
org.xml.sax.SAXException - If the writing of the content fails.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||